import newRequest from '@/utils/newRequest'
import request from '@/utils/request'
import { mergeParams } from '@/utils'

// 获取验证码
export function getCodeImg() {
  return request({
    url: '/api/v1/getCaptcha',
    method: 'get'
  })
}

export function getNewCodeImg() {
  // const data = mergeParams(query)
  return newRequest({
    url: '/home/getCaptcha',
    method: 'get'
  })
}
